package hfdp.chp06.chp0605;

/**
 * Created by chei on 2016/8/31.
 */
public class StereoOnCommand implements Command {

    private Stereo stereo;

    public StereoOnCommand(Stereo stereo) {
        this.stereo = stereo;
    }

    @Override
    public void execute() {
        stereo.on();
        stereo.setVolume(11);
        stereo.setCD();
    }
}
